package me.nereo.multi_image_selector.bean;

import java.io.Serializable;

/**
 * 图片实体
 * Created by Nereo on 2015/4/7.
 */
public class Image implements Serializable{
    public String path="";
    public String name="";
    public long time=0;

    public boolean isOri = false;

    private String albumId;

    private String uploadstate = "false";//上传状态 0 未上传  1已上传

    private int width;
    private int height;
    private int size;

    public Image(String path, String name, long time,boolean isOri){
        this.path = path;
        this.name = name;
        this.time = time;
        this.isOri = isOri;
    }

    @Override
    public boolean equals(Object o) {
        try {
            Image other = (Image) o;
            return this.path.equalsIgnoreCase(other.path);
        }catch (ClassCastException e){
            e.printStackTrace();
        }
        return super.equals(o);
    }

    public String getAlbumId() {
        return albumId;
    }

    public void setAlbumId(String albumId) {
        this.albumId = albumId;
    }

    public String getUploadstate() {
        return uploadstate;
    }

    public void setUploadstate(String uploadstate) {
        this.uploadstate = uploadstate;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }
}
